    <script>
    {literal}
    field_formatters.total_cost=function (value, row, index){
    	if(value)
			return formatCurrency(value);
        else
            return null;
    }
    field_formatters.total_amount=function (value, row, index){
    	if(value)
			return formatCurrency(value);
        else
            return null;
    }
    field_formatters.total_profit=function (value, row, index){
    	if(value)
			return formatCurrency(value);
        else
            return null;
    }
    field_formatters.total_tax=function (value, row, index){
    	if(value)
			return formatCurrency(value);
        else
            return null;
    }
    field_formatters.period_init_amount=function (value, row, index){
    	if(value)
			return formatCurrency(value);
        else
            return null;
    }
    field_formatters.period_buy_amount=function (value, row, index){
    	if(value)
			return formatCurrency(value);
        else
            return null;
    }
    field_formatters.period_sell_amount=function (value, row, index){
    	if(value)
			return formatCurrency(value);
        else
            return null;
    }
    field_formatters.period_profit=function (value, row, index){
    	if(value)
			return formatCurrency(value);
        else
            return null;
    }
    {/literal}
    </script>